<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>phpcmsV9 - {L('member','','member').L('manage_center')}</title>
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
<script type="text/javascript" src="{JS_PATH}formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}dialog.js"></script>
<link href="{CSS_PATH}reset.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}dialog_simp.css" rel="stylesheet" type="text/css" />

<link href="{CSS_PATH}zmain.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}public.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}company.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}shop.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}plugins.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="{JS_PATH}/menu.js"></script>
<script language="JavaScript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});

	$("#username").formValidator({onshow:"{L('input').L('username')}",onfocus:"{L('username').L('between_2_to_20')}"}).inputValidator({min:2,max:20,onerror:"{L('username').L('between_2_to_20')}"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"{L('username').L('format_incorrect')}"}).ajaxValidator({
	    type : "get",
		url : "",
		data :"m=member&c=index&a=public_checkname_ajax",
		datatype : "html",
		async:'false',
		success : function(data){
            if( data == "1" ) {
                return true;
			} else {
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "{L('deny_register').L('or').L('user_already_exist')}",
		onwait : "{L('connecting_please_wait')}"
	});
	$("#password").formValidator({onshow:"{L('input').L('password')}",onfocus:"{L('password').L('between_6_to_20')}"}).inputValidator({min:6,max:20,onerror:"{L('password').L('between_6_to_20')}"});
	$("#pwdconfirm").formValidator({onshow:"{L('input').L('cofirmpwd')}",onfocus:"{L('input').L('passwords_not_match')}",oncorrect:"{L('passwords_match')}"}).compareValidator({desid:"password",operateor:"=",onerror:"{L('input').L('passwords_not_match')}"});
	$("#email").formValidator({onshow:"{L('input').L('email')}",onfocus:"{L('email').L('format_incorrect')}",oncorrect:"{L('email').L('format_right')}"}).inputValidator({min:2,max:32,onerror:"{L('email').L('between_2_to_32')}"}).regexValidator({regexp:"email",datatype:"enum",onerror:"{L('email').L('format_incorrect')}"}).ajaxValidator({
	    type : "get",
		url : "",
		data :"m=member&c=index&a=public_checkemail_ajax",
		datatype : "html",
		async:'false',
		success : function(data){	
            if( data == "1" ) {
                return true;
			} else {
                return false;
			}
		},
		buttons: $("#dosubmit"),
		onerror : "{L('deny_register').L('or').L('email_already_exist')}",
		onwait : "{L('connecting_please_wait')}"
	});
	$("#nickname").formValidator({onshow:"{L('input').L('nickname')}",onfocus:"{L('nickname').L('between_2_to_20')}"}).inputValidator({min:2,max:20,onerror:"{L('nickname').L('between_2_to_20')}"}).regexValidator({regexp:"ps_username",datatype:"enum",onerror:"{L('nickname').L('format_incorrect')}"}).ajaxValidator({
			type : "get",
			url : "",
			data :"m=member&c=index&a=public_checknickname_ajax",
			datatype : "html",
			async:'false',
			success : function(data){
				if( data == "1" ) {
					return true;
				} else {
					return false;
				}
			},
			buttons: $("#dosubmit"),
			onerror : "{L('already_exist').L('already_exist')}",
			onwait : "{L('connecting_please_wait')}"
		});

	$(":checkbox[name='protocol']").formValidator({tipid:"protocoltip",onshow:"{L('read_protocol')}",onfocus:"{L('read_protocol')}"}).inputValidator({min:1,onerror:"{L('read_protocol')}"});

	{$formValidator}

	{if !isset($_GET['modelid']) && !isset($_GET['t']) && !empty($member_setting['showregprotocol'])}
		show_protocol();
	{/if}
});

function show_protocol() {
	art.dialog({lock:false,title:'{L('register_protocol')}',id:'protocoliframe', iframe:'?m=member&c=index&a=register&protocol=1',width:'500',height:'310',yesText:'{L('agree')}'}, function(){
		$("#protocol").attr("checked",true);
	});
}
function select_group(id){
	$('#typeid').val(id);
	var type='';
	if(id==2){
		type = '装饰公司';
	}else if(id==1){
		type = '业主';
	}
	else if(id==4){
		type = '设计师';
	}
	else if(id==3){
		type = '商家';
	}

	$('#grouptype').html(type);
}
//-->
</script>
<link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" />

</head>
<body>
<!-- 头部begin-->
<div id="header">
  <div class="login-info"> <span>你好，欢迎你来装师傅！<a href="{APP_PATH}index.php?m=member&c=index&a=login&forward={urlencode($_GET['forward'])}&siteid={$siteid}">请登录</a><a href="{APP_PATH}index.php?m=member&c=index&a=register&siteid={$siteid}">免费注册</a></span>
    <ul>
      <li><a href="#">设为首页</a></li>
      <li><a href="#">网站地图</a></li>
      <li><a href="#">加入收藏</a></li>
    </ul>
  </div>
  <div id="header01">
    <div id="logo"><a href="{APP_PATH}"><img src="{CSS_PATH}images/zindex_06.gif" /></a></div>
    <div class="member_text">注册中心</div>
  </div>
  <div id="denglu"></div>
</div>
<!-- 头部end-->
<div id="denglu_bc">
  <div style=" width:450px; height:23px; margin-top:40px; _margin-top:5px;margin-left:40px;"><img src="{CSS_PATH}images/register_03.jpg"/></div>
  <div class="register">
    <div class="hh"><span class="strong p12">提示：</span> 您选择的注册类型是：<span class="color03" style="margin-right:3px;" id="grouptype">业主</span>您可以在右边重新选择—>
      <p>欢迎您注册装师傅，请填写以下资料：</p>
      <form method="post" action="" id="myform">
      <input name="typeid" type="hidden" value="1" id="typeid"  />
      <input type="hidden" name="siteid" value="1" />
        <ul>
         <li class="p14" style="overflow:auto"><label>用户名：</label>
          <input maxlength="15" name="username" id="username" type="text" class="input-text">
          </li>
          <li class="p14"><label>电子邮箱：</label>
          <input maxlength="15" name="email" id="email" type="text" class="input-text">
          </li>
          <li class="li04 color06"><img src="{CSS_PATH}images/cant.gif">请输入您常用的邮箱</li>
          <li class="p14"><label>密码：</label>
          <input maxlength="15" name="password" id="password" type="password" class="inputbox3"/>
          </li>
          <li class="li04 color06"><img src="{CSS_PATH}images/cant.gif">请输入6-20位字符,且只能由字母、数字和下划线组成</li>
          <li > <span class="regtlx">&nbsp; </span> <span class="ruo" id="passr"> 弱 </span> <span class="zhong" id="passz"> 中 </span> <span class="qiang" id="passq"> 强 </span> </li>
          <li class="p14">
            <label>确认密码：</label>
            <input maxlength="15" name="pwdconfirm" id="pwdconfirm" type="password" class="inputbox3"/>
          </li>
         
          <li class="p14">
            
            <label>{L('checkcode')}：</label><input type="text" id="code" name="code" size="10" class="input-text">{form::checkcode('code_img', '4', '14', 80, 24)}
          </li>
          
          <li class="li06">
            <input type="checkbox" name="protocol" id="protocol" value="">我同意 <a  style="color:#ff6600;font-size:12px;" href="javascript:void(0);" onclick="show_protocol();return false;" class="blue">{L('click_read_protocol')}</a>
                </li>
           <li class="li05">
             <input name="dosubmit" id="regSubmit2" type="submit" class="inputbutton_4" value="" />
           </li>
        </ul>
      </form>
      
    </div>
  </div>
  <div class="login_right login_bc2">
    <h4 class="p14 color06 text_h1">请选择您需要注册的类型！</h4>
    <div class="login_bc1 "> <img src="{CSS_PATH}images/an_03.jpg" border="0" usemap="#Map" style="margin-left:80px;"/>
      <map name="Map" id="Map">
        <area shape="rect" coords="3,3,172,56" href="#" onclick="select_group(1);"/>
        <area shape="rect" coords="4,69,173,122" href="#"  onclick="select_group(3);"/>
        <area shape="rect" coords="3,135,173,190" href="#"  onclick="select_group(4);"/>
        <area shape="rect" coords="4,200,172,253" href="#"  onclick="select_group(2);"/>
      </map>
    </div>
    <input name="regSubmit" onclick="location.href='index.php?m=member&c=index&a=login'" id="regSubmit" type="submit" class=" inputbutton_5" value=""/>
  </div>
   
</div>
</div>
</div>
<!-- 内容begin-->
<!-- 板块1begin-->
<!--友情链接begin-->

<!-- 友情链接end-->
<!-- 内容end-->
<!-- 底部begin-->
<div id="footer"><a href="#">关于装装</a> | <a href="#">广告服务</a> | <a href="#">招聘信息</a> | <a href="#">意见反馈</a> | <a href="#">网站地图</a> | <a href="#">联系我们</a> | <a href="#">友情链接</a><br />
  Copyright (C) 2006-2009 Zhuangw.com. All Rights Reserved
  豫ICP备09005583号 E-mail：aoworld@126.com</div>
<!-- 底部end-->
</body>
</html>
